<?php
echo '<form action="http://www.website.com/page" method="post">';
foreach ( $this->object as $k => $v ) {
	$c = strtoupper ( $k [0] );
	$k1 = $c . substr ( $k, 1, strlen ( $k ) );
	echo '<div class="xelement">';
	echo '<div class="xleft">';
	echo '<span>' . $k1 . '</span>';
	echo '</div>';
	echo '<div class="xright">';
	if (! strcmp ( $k, 'id' ))
		echo '<input name="_' . $_GET ['_module'] . $k . '" type="text" disabled="disabled" value=""/>';
	else
		echo '<input name="_' . $_GET ['_module'] . $k . '" type="text" value=""/>';
	echo '</div>';
	echo '</div>';
}
echo '<input type="submit" value="ADD" onclick="test()"/>';
echo '<script type="text/javascript">';
echo 'function test(){alert("asfasdfs");}';			
echo '</script>';
echo '</form>';
